package com.youlu.campus.website.repositories;

import com.youlu.campus.website.common.enums.PlatformType;
import com.youlu.campus.website.entity.Carousel;
import org.springframework.data.mongodb.repository.MongoRepository;

import java.util.List;

/**
 * 轮播图数据访问接口
 */
public interface CarouselRepository extends MongoRepository<Carousel, String> {

    List<Carousel> findByPlatformAndStatusOrderBySortOrderAsc(PlatformType platform, int status);
}
